<html xmlns="http://www.w3.org/1999/html">

<head>
    <meta charset="UTF-8">
    <title>复学堂</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/layui.css') }}"/>
    <link rel="stylesheet" href="{{ url_for('static', filename='index-style.css') }}"/>
    <script src="{{ url_for('static', filename='layui.js') }}"></script>
    <script src="{{ url_for('static', filename='scripts.js') }}"></script>
    <script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.2.2/echarts.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/vis/4.21.0/vis.min.js"></script>
    <!--<meta http-equiv="Refresh" content="30";/>-->
</head>
<body>
<!-- 头部模块 -->
    <div class="header w">
        <!-- logo部分 -->
        <div class="logo">
            <h1>智学堂</h1>
        </div>
        <!-- 导航栏部分 -->
        <div class="nav">
            <ul>
                <li>&nbsp;</li>
            </ul>
        </div>
        <!-- 搜索 -->
        <div class="search">
            <input type="text" value="输入关键词">
            <button></button>
        </div>
        <!-- 用户 -->
        <div class="user" style="text-alignt:right">
            {% if username == '' %}
                <p><a href="/login">登录</a>&nbsp;|&nbsp;<a href="/reg">注册</a></p>
            {% else %}
                <p><img src="images/user.png">{{username}} &nbsp;&nbsp;<a href="/logout">退出</a>&nbsp;&nbsp;<a href="/member">管理平台</a></p>
            {% endif %}
        </div>
    </div>
   <ul class="layui-nav" lay-filter="" style="background:#bf6124; font-size: 18px;text-align: center;">
        <li class="layui-nav-item {{indexcss}}"><a href="/">首页</a></li>
        <li class="layui-nav-item {{zhangtingcss}}">
            <a href="javascript:;">资讯</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="/front/zhangting?num=1">高考动态</a></dd>
                <dd><a href="/front/zhangting?num=2">院校动态</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item {{zhangtingcss}}">
            <a href="javascript:;">课程</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="/front/zhangting?num=1">高考动态</a></dd>
                <dd><a href="/front/zhangting?num=2">院校动态</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item {{zhangtingcss}}">
            <a href="javascript:;">题库</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="/front/zhangting?num=1">高考动态</a></dd>
                <dd><a href="/front/zhangting?num=2">院校动态</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item {{zhangtingcss}}">
            <a href="javascript:;">高考</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="/front/zhangting?num=1">志愿填报</a></dd>
                <dd><a href="/front/zhangting?num=2">学业规划</a></dd>
            </dl>
        </li>
    </ul>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function(){
      var element = layui.element;

      //…
    });
</script>